﻿using DevExpress.Xpf.Charts;
using System.Collections.Generic;
using System.Windows.Data;

namespace TeBigCommonUI.Items
{
    /// <summary>
    /// Interaction logic for Bar2D.xaml
    /// </summary>
    public partial class RangeArea2DChart : XYDiagramChartControl
    {
        public RangeArea2DChart()
        {
            InitializeComponent();
        }

        protected override Series CreateSeriesFromDataSource(IList<SeriesDataSource> source, int index)
        {
            return new RangeAreaSeries2D()
            {
                Value2DataMember = source[index].Value2DataMember,
                Marker1Visible = false,
                Marker2Visible = false,
            };
        }

        protected override void OnInitChart()
        {
            InitChartInternal(chart, chart_diagram);
        }
    }
}